package com.nuc.iblog.service;

import com.nuc.iblog.entity.Article;
import com.nuc.iblog.entity.ArticlePage;
import com.nuc.iblog.entity.Category;
import com.nuc.iblog.entity.User;
import org.hibernate.criterion.Example;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


/**
 * Created by Tyranitarx on 2018/1/11.
 *
 * @Description :
 */
public interface ClArticleService {

    public Article getArticle(int aid);


    public List<Article> getArticles();


    public List<Article> getArticlesByUser(int uid);


    public ArticlePage getAcademyArticle(int catid, int pagenum);

    public int insertArticle(int uid, String title, String summary, String content);


    public int updateArticle(int uid, int aid,String title, String summary, String content);


    public int deleteArticle(int aid);



    public Page<Article> getPageArticle(int uid,int pagenum,int size);

    public List<Article> searchArticle(String input);

}
